%var title Wake-on-LAN (WOL) rav%
%var page_name Wake-on-LAN (WOL) rav%
%var page_desc Preferences rav%
%include "tpl_base.html|header"%

MAC address list:
<ul>
%for %mac_list_len%
<li>%mac_list_desc% (%mac_list%) <a href="%root_path%/del?mac=%mac_list%">Delete</a></li>
rof%
</ul>

Choose MAC address from ARP cache:
%block_ajax get_arp_cache
<ul>
%for %arp_len%
<li><a href="%root_path%/choose?mac=%arp_macs%&desc=%arp_names%">%arp_names% (%arp_macs%)</a></li>
rof%
</ul>
kcolb%

<form method="post" action="%root_path%/add">
Description: <input type="text" name="desc" value="%input_mac_desc%"/>
Address: <input type="text" name="mac" value="%input_mac_val%"/>
<input type="submit" value="Add"/>
</form>

<form method="post" action="%root_path%/broadcast">
Broadcast address: <input type="text" name="addr" value="%brd_addr%">
<input type="submit" value="Set"/>
</form>
%include "tpl_base.html|footer"%